package com.bdmc.base.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdmc.base.domain.BaseFence;
import com.bdmc.base.domain.bo.BaseFenceBo;
import com.bdmc.base.domain.vo.BaseFenceVo;
import com.bdmc.common.annotation.DataColumn;
import com.bdmc.common.annotation.DataPermission;
import com.bdmc.common.core.mybatisplus.core.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 网格Mapper接口
 *
 * @author bdmc
 * @date 2022-03-03
 */
public interface BaseFenceMapper extends BaseMapperPlus<BaseFence> {

    @DataPermission({@DataColumn(value = "d.dept_id")})
    Page<BaseFenceVo> mySelectPage(@Param("page") Page<BaseFence> page, @Param("param") BaseFenceBo bo);

    @DataPermission({@DataColumn(value = "d.dept_id")})
    List<BaseFenceVo> mySelectPage(@Param("param") BaseFenceBo bo);
}
